package com.snoweagler.controller;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class Consumer {
    @JmsListener(destination="hello")
    public void readMessage(String text){
        System.out.println("接收到消息："+text);
    }

}
